Added gtk_icon_view_new_with_area()
authorTristan Van Berkom <tristan.van.berkom@gmail.com>
Mon, 13 Dec 2010 06:54:02 +0000 (15:54 +0900)
committerTristan Van Berkom <tristan.van.berkom@gmail.com>
Thu, 6 Jan 2011 04:51:48 +0000 (13:51 +0900)
docs/reference/gtk/gtk3-sections.txt
gtk/gtk.symbols
gtk/gtkiconview.c
gtk/gtkiconview.h

index 73c7c9ac8f86201ce156f6dc277539c5e8e69938..3ae7fa806673cc7575e1afa8d0ae8f12ac982238 100644 (file)
@@ -1621,6 +1621,7 @@ gtk_hseparator_get_type
 GtkIconView
 GtkIconViewForeachFunc
 gtk_icon_view_new
+gtk_icon_view_new_with_area
 gtk_icon_view_new_with_model
 gtk_icon_view_set_model
 gtk_icon_view_get_model
index d423df6e87aac9eff4fd77b3bc5f6e8556cf1d8c..476bbeb06caaa73b37284ef98501358525315e83 100644 (file)
@@ -1241,6 +1241,7 @@ gtk_icon_view_get_type G_GNUC_CONST
 gtk_icon_view_get_visible_range
 gtk_icon_view_item_activated
 gtk_icon_view_new
+gtk_icon_view_new_with_area
 gtk_icon_view_new_with_model
 gtk_icon_view_path_is_selected
 gtk_icon_view_scroll_to_path
index 151a63bd78923a5ab20c96ed599a77007e5526c6..5d10704bacd2ed98daa6e0210eed928e47bf51a7 100644 (file)
@@ -4121,6 +4121,23 @@ gtk_icon_view_new (void)
   return g_object_new (GTK_TYPE_ICON_VIEW, NULL);
 }
 
+/**
+ * gtk_icon_view_new_with_area:
+ * @area: the #GtkCellArea to use to layout cells
+ * 
+ * Creates a new #GtkIconView widget using the
+ * specified @area to layout cells inside the icons.
+ * 
+ * Return value: A newly created #GtkIconView widget
+ *
+ * Since: 3.0
+ **/
+GtkWidget *
+gtk_icon_view_new_with_area (GtkCellArea *area)
+{
+  return g_object_new (GTK_TYPE_ICON_VIEW, "cell-area", area, NULL);
+}
+
 /**
  * gtk_icon_view_new_with_model:
  * @model: The model.
index cf769b6d59b693f71f7ee35471fd75a26b274605..bac6218046e27ba3abab55f0f6fc611dea1ecea1 100644 (file)
@@ -27,6 +27,7 @@
 #include <gtk/gtkcontainer.h>
 #include <gtk/gtktreemodel.h>
 #include <gtk/gtkcellrenderer.h>
+#include <gtk/gtkcellarea.h>
 #include <gtk/gtkselection.h>
 #include <gtk/gtktooltip.h>
 
@@ -112,6 +113,7 @@ struct _GtkIconViewClass
 
 GType          gtk_icon_view_get_type          (void) G_GNUC_CONST;
 GtkWidget *    gtk_icon_view_new               (void);
+GtkWidget *    gtk_icon_view_new_with_area     (GtkCellArea    *area);
 GtkWidget *    gtk_icon_view_new_with_model    (GtkTreeModel   *model);
 
 void           gtk_icon_view_set_model         (GtkIconView    *icon_view,